package com.qf.service.medicineAudit.impl;

import com.qf.entity.MedicineAudit;
import com.qf.mapper.MedicineAuditMapper;
import com.qf.mapper.MedicineCategoryMapper;
import com.qf.service.medicineAudit.MedicineAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 永无霸哥 ---
 *
 * @author M.rk
 * @date 2024/12/7 20:05
 * @desc
 */
@Service
public class MedicineAuditServiceImpl implements MedicineAuditService {
    @Autowired
    MedicineAuditMapper medicineAuditMapper;

    //  新增数据到审核
    @Override
    public int newAudit(MedicineAudit medicineAudit) {
        int i = medicineAuditMapper.newAudit(medicineAudit);

        return i;
    }

    // 查询所有审核记录
    @Override
    public List<MedicineAudit> examineList(MedicineAudit medicineAudit) {
        List<MedicineAudit> medicineAudits = medicineAuditMapper.examineList(medicineAudit);


        return medicineAudits;
    }
}
